package com.github.admin.edu.security.jwt.server.domain;

import com.github.admin.edu.orm.repository.CustomRepository;
import com.github.admin.edu.security.jwt.server.entity.TSysUser;
import com.github.admin.edu.security.jwt.server.entity.Tuser;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * Create by IntelliJ IDEA
 * 用户：王建
 * 日期：2018-7-24
 */
public interface ServerUserSysLoginDomain extends CustomRepository<TSysUser,String> {

    @Query("select t from TSysUser t where t.userid=:userId and t.state = '1' ")
    List<TSysUser> getByUserid(@Param("userId")String userId);

}
